package com.StarStudio.Mapper;

import com.StarStudio.Domain.Expert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ExpertMapper {

    @Select("select * from expert")
    public List<Expert> findAll();

    @Select("select * from expert where id = #{id}")
    public Expert findById(int id);
}
